<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a="http://richfaces.org/a4j">

	<h:panelGrid columns="2" styleClass="personInfo"
		columnClasses="personInfoPanelGridCol1, personInfoPanelGridCol2">
		<h:outputText value="#{personmsgs['personInfo']}" />
		<h:panelGroup>
			<h:outputText value="*" style="color:red;" />
			<h:outputText value="#{personmsgs['requiredField']}" />
		</h:panelGroup>
	</h:panelGrid>

	<h:panelGrid columns="4" id="pnlGridUserInfo" styleClass="inputBlock"
		columnClasses="inputBlockpersonInfoCol1, inputBlockpersonInfoCol2, inputBlockpersonInfoCol3, inputBlockpersonInfoCol4">
		<h:panelGroup>
			<h:outputText value="*" style="color:red;" />
			<h:outputText value="#{personmsgs['personInfo.personLogin']}" />
		</h:panelGroup>
		<s:decorate template="/layout/validationTemplate.xhtml">
			<h:inputText value="#{person.login}" maxlength="50" required="true"/>
		</s:decorate>
		<rich:spacer />
		<rich:spacer />

		<h:panelGroup>
			<h:outputText value="*" style="color:red;" />
			<h:outputText value="#{personmsgs['personInfo.lastName_subName']}" />
		</h:panelGroup>
		<s:decorate template="/layout/validationTemplate.xhtml">
			<h:inputText value="#{person.lastNameAndSubName}" required="true" maxlength="50"/>
		</s:decorate>
		<rich:spacer />
		<rich:spacer />

		<h:panelGroup>
			<h:outputText value="*" style="color:red;" />
			<h:outputText value="#{personmsgs['personInfo.firstName']}" />
		</h:panelGroup>
		<s:decorate template="/layout/validationTemplate.xhtml">
			<h:inputText value="#{person.firstName}" required="true" maxlength="50"/>
		</s:decorate>
		<h:panelGroup>
			<h:outputText value="*" style="color:red;" />
			<h:outputText value="#{personmsgs['personInfo.nationality']}" />
		</h:panelGroup>
		<h:selectOneMenu value="#{person.selectedNationality}"
			style="width:100;">
			<f:selectItems value="#{person.nationalities}" />
		</h:selectOneMenu>

		<h:panelGroup>
			<h:outputText value="*" style="color:red;" />
			<h:outputText value="#{personmsgs['personInfo.gender']}" />
		</h:panelGroup>
		<h:selectOneMenu value="#{person.selectedGender}">
			<f:selectItems value="#{person.genders}"/>
		</h:selectOneMenu>
		<h:panelGroup>
			<h:outputText value="*" style="color:red;" />
			<h:outputText value="#{personmsgs['personInfo.language']}" />
		</h:panelGroup>
		<h:selectOneMenu value="#{person.selectedLanguage}" style="width:100;"
			required="true">
			<f:selectItems value="#{person.languages}" />
		</h:selectOneMenu>

		<h:panelGroup>
			<h:outputText value="*" style="color:red;" />
			<h:outputText value="#{personmsgs['personInfo.birthday']}" />
		</h:panelGroup>
		<s:decorate id="dBirthday" template="/layout/validationTemplate.xhtml">
			<rich:calendar id="cal_birthDay" datePattern="dd/MM/yyyy"
				required="true" isDayEnabled="disableDate" dayStyleClass="disabledClassesProv"
				boundaryDatesMode="scroll" value="#{person.selectedBirthDay}" />
		</s:decorate>
		<rich:spacer />
		<rich:spacer />
		
		<h:panelGroup>
			<h:outputText value="*" style="color:red;" />
			<h:outputText value="#{personmsgs['personInfo.password']}" />
		</h:panelGroup>
		<s:decorate id="dIpass" template="/layout/validationTemplate.xhtml">
			<h:inputSecret id="iPass" value="#{person.password}" required="true" maxlength="100" redisplay="true"/>
		</s:decorate>
		<rich:spacer />
		<rich:spacer />

		<h:panelGroup>
			<h:outputText value="*" style="color:red;" />
			<h:outputText value="#{personmsgs['personInfo.passwordConfirm']}" />
		</h:panelGroup>
		<s:decorate template="/layout/validationTemplate.xhtml">
			<h:inputSecret value="#{person.confirmPassword}" required="true" maxlength="100" redisplay="true">
				<s:validateEquality for=":#{rich:clientId('iPass')}" message="#{messages['validator.confirmMustMatch']}"/>
			</h:inputSecret>
		</s:decorate>
		<rich:spacer />
		<rich:spacer />
	</h:panelGrid>
	<h:panelGrid id="pnlChk" columns="1" styleClass="inputBlock">
		<h:panelGroup>
			<h:selectBooleanCheckbox value="#{person.allowedAdvertising}"
				id="chkBoxAdEmail" />
			<h:outputLabel value="#{personmsgs['personInfo.email_Advertising']}"
				for="chkBoxAdEmail" />
		</h:panelGroup>

		<h:panelGroup>
			<h:selectBooleanCheckbox
				value="#{person.allowedBroadCastInformation}" id="chkBoxconfCheck" />
			<h:outputLabel value="#{personmsgs['personInfo.confidentialCheck']}"
				for="chkBoxconfCheck" />
		</h:panelGroup>
	</h:panelGrid>
</ui:composition>